package org.mparts.client.ui.events;

import com.google.gwt.event.shared.GwtEvent;

public class ShowPartitemEvent extends GwtEvent<ShowPartitemEventHandler> {

	public static Type<ShowPartitemEventHandler> TYPE = new Type<ShowPartitemEventHandler>();

	private boolean state;

	public ShowPartitemEvent(boolean state) {
		super();
		this.state = state;
	}

	@Override
	public Type<ShowPartitemEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ShowPartitemEventHandler handler) {
		handler.onShowPartitem(this);
	}

	public boolean isState() {
		return state;
	}

}